#!/bin/sh
# Parameters: save_data_dir
save_data_dir=$1
cat << EOF
#!/bin/sh
version=\`date +%Y%m%d%H%M%S\`
echo "Content-type: application/x-tgz"
echo "Content-disposition: attachment; filename=\"amos-database-\${version}.tgz\""
echo "Content-description: AMOS Database"
echo ""
cd ${save_data_dir}/database_impl
tar -czf - *.pl
EOF
